package config.fullandlitemode;

import com.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class Main {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(FullAndLiteMode.class);
        FullAndLiteMode config = context.getBean(FullAndLiteMode.class);
        System.out.println(config);
        System.out.println("1===========================");
        UserService service = context.getBean(UserService.class);
        service.insert();
        System.out.println("2===========================");
        UserService service2 = context.getBean(UserService.class);
        service2.insert();
    }
}
